<?php

namespace App\Kuafu\Mybank\Service;

use App\Kuafu\Base\Service\BaseService;
use App\Kuafu\Mybank\Model\MybankBillRecordModel;
use App\Kuafu\Mybank\Model\MybankOrderRecordModel;

class MybankOrderService extends BaseService
{
    public static function switchBillRecordSource(int $source): int
    {
        switch ($source) {
            case MybankBillRecordModel::SOURCE_MEITUAN:
                return MybankOrderRecordModel::TYPE_BILL_TYPE_MT;
            case MybankBillRecordModel::SOURCE_ELE:
                return MybankOrderRecordModel::TYPE_BILL_TYPE_ELE;
        }
        return 0;
    }
}
